package com.css.fxfzxczh.modules.eqDisasterLossAssess.houseEconomicLossAssess.repository;

import com.css.fxfzxczh.modules.eqDisasterLossAssess.houseEconomicLossAssess.entity.*;

import java.util.List;


public interface HouseEconomicLossAssessRepository {

    boolean save(HouseLossRatioEntity houseLossRatioEntity);

    boolean update(HouseLossRatioEntity houseLossRatioEntity);

    HouseLossRatioEntity getHouseLossRatio(String xsemId);

    List<HousesDirectEconomicLosses> getHousesDirectEconomicLossesByXstmId(String xstmId);

    void saveHousesDirectEconomicLosses(HousesDirectEconomicLosses housesDirectEconomicLosses);

    String getSumTotal(String xstmId);

    boolean saveDisasterAreasHousesDirectEconomicLosses(DisasterAreasHousesDirectEconomicLosses disasterAreasHousesDirectEconomicLosses);

    List<DisasterAreasHousesDirectEconomicLosses> getDisasterAreasHousesDirectEconomicLossesByXsemId(String xsemId);

    DisasterAreasHousesDirectEconomicLosses getDisasterAreasHousesByXstmId(String xstmId);

    void deleteHouseFailureRatio(String xsemId);

    void saveHouseFailureRatio(HouseFailureRatioEntity houseFailureRatioEntity);

    List<HouseFailureRatioEntity> getHouseFailureRatioByXsemId(String xsemId);

    List<HouseFailureRatioEntity> getHouseFailureRatioByXstmId(String xstmId);

    void deleteDisasterAreasHousesDirectEconomicLosses(String xsemId);

    boolean saveAdministrationAreaHousesDirectEconomicLosses(AdministrationAreaHousesDirectEconomicLosses entity);

    List<AdministrationAreaHousesDirectEconomicLosses> getAdministrationData(String xsemId);

    AdministrationAreaHousesDirectEconomicLosses getAdministrationDataByXsemIdAndCounty(String xsemId,String province,String city,String county);

    void delHousesDirectEconomicLossesByXsemId(String xstmId);

    void batchSave(List<HousesDirectEconomicLosses> list);

    void delAdministrationAreaHousesDirectEconomicLosses(String xsemId);

    List<AdministrationAreaHousesDirectEconomicLosses> getLossesByXsemId(String xsemId);
}
